﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TopicRecord.ascx.cs" Inherits="Lenovo.CFI.Web.VP.TopicRecord" %>
<tbwc:StyleSheetControl ID="SscList" runat="server" CssPath="list.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscAc" runat="server" CssPath="VP/autocomplete.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscDp" runat="server" CssPath="DatePicker/datepicker.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SccDialogs" runat="server" CssPath="modaldialogs.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscThis" runat="server" CssPath="VP/topic/topicrecord.css"></tbwc:StyleSheetControl>
<ajaxToolkit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" CombineScripts="false" ID="ScriptManager1" />

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <div class="dataListArea">
            <tbwc:GridViewEx ID="GvList" runat="server" SkinID="List" DataKeyNames="ID"
                AllowPaging="false" OnRowDataBound="GvList_RowDataBound" OnRowCommand="GvList_RowCommand">
                <Columns>
                    <asp:TemplateField HeaderText="No.">
                        <itemstyle cssclass="listNo" />
                        <itemtemplate><asp:Literal ID="LtrNo" runat="server"></asp:Literal></itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="StartTime">
                        <itemtemplate><asp:Literal ID="LtrStartTime" runat="server"></asp:Literal></itemtemplate>
                        <ItemStyle CssClass="time" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Idea Name">
                        <itemtemplate><asp:Literal ID="LtrTitle" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="title" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Author">
                        <itemtemplate><asp:Literal ID="LtrOwner" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="owner" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Type">
                        <itemtemplate><asp:Literal ID="LtrType" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="type" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Record">
                        <itemtemplate><asp:Literal ID="LtrRecord" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="record" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="">
                        <ItemTemplate><asp:ImageButton ID="BtnEdit" runat="server" CommandName="OpenEdit"
                            ToolTip="Record" SkinID="ListEdit" CausesValidation="False" CommandArgument='<%# Eval("ID")%>' /></ItemTemplate>
                        <ItemStyle CssClass="listOp" />
                    </asp:TemplateField>
                </Columns>
            </tbwc:GridViewEx>
        </div>

        <asp:Button ID="BtnHiddenEdit" runat="Server" Style="display: none" />
        <ajaxToolKit:ModalPopupExtender ID="MpeEdit" runat="server" TargetControlID="BtnHiddenEdit"
            PopupControlID="PnlEdit" CancelControlID="BtnCancel" BackgroundCssClass="modalBackground"
            PopupDragHandleControlID="PnlEditCaption" Drag="false">
        </ajaxToolKit:ModalPopupExtender>
        <asp:Panel ID="PnlEdit" runat="server" CssClass="modalBox detail" Style="display: none;" Width="480px">
            <asp:Panel ID="PnlEditCaption" runat="server" CssClass="caption" Style="margin-bottom: 10px; cursor: hand;">
                Record</asp:Panel>
            <div><asp:Label ID="LblRecord" runat="server" AssociatedControlID="TxtRecord" Text="Record:" CssClass="title"></asp:Label><asp:TextBox 
                ID="TxtRecord" runat="server" Width="30em" TextMode="MultiLine" Rows="3"></asp:TextBox></div>
            <div><asp:Label ID="LblType" runat="server" AssociatedControlID="DdlType" Text="Type:" CssClass="title"></asp:Label><asp:DropDownList
                ID="DdlType" runat="server"></asp:DropDownList></div>
            <div><asp:Label ID="LblStatus" runat="server" AssociatedControlID="DdlStatus" Text="Status:" CssClass="title"></asp:Label><asp:DropDownList
                ID="DdlStatus" runat="server">
                    <asp:ListItem Text="Wait" Value="1"></asp:ListItem>
                    <asp:ListItem Text="Ongoing" Value="2"></asp:ListItem>
                    <asp:ListItem Text="Done" Value="3"></asp:ListItem>
                </asp:DropDownList></div>
            <div style="white-space: nowrap; text-align: center; margin-top:2em;">
		        <asp:Button ID="BtnSave" runat="server" Text="Save" OnClick="BtnSave_Click" CausesValidation="true"/>
		        <asp:Button ID="BtnCancel" runat="server" CausesValidation="false" Text="Cancel"/>
	        </div>
        </asp:Panel>

    </ContentTemplate>
</asp:UpdatePanel>
